<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateSpamranksTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('spamranks', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('userid');
			$table->integer('cnt');
			$table->timestamps();
			$table->string('username', 100)->nullable();
			$table->integer('delete')->default(0);
		});
        DB::update('ALTER TABLE spamranks AUTO_INCREMENT = 743');
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('spamranks');
	}

}
